package started;

import implementation.Cliente;
import implementation.LerArquivo;
import entility.Machine;

public class StartedClient {

	
	
	public static void main(String[] args) {
		
		ClientProperties props = ClientProperties.getInstance();
		
		Machine mainServer = props.getMainServer();
		Cliente client = new Cliente(mainServer);
		
		
		
		
		try {
			
			//Methodo que busca os hosts na lista de hosts do server primario
			client.initHosts();
			/*LerArquivo start = new LerArquivo("C:\\files2\\part3");
			start.initHosts(mainServer);
			start.setTotalCores();
			start.setTamanhoParte();
			start.inicializaStatusCores();
			start.lerArquivo();*/
		} catch (Exception e) {
			
			//Falha no servidor
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

		client.startAllHosts();
	
		
		// TODO Auto-generated method stub

	}

}
